import request from '@/utils/request'

// 查询隧道管理列表
export function listTunnel(query) {
  return request({
    url: '/fj/conf_tunnel/list',
    method: 'get',
    params: query
  })
}
export function listAll() {
  return request({
    url: '/fj/conf_tunnel/listAll',
    method: 'get',
    // params: query
  })
}

// 查询隧道管理详细
export function getTunnel(id) {
  return request({
    url: '/fj/conf_tunnel/' + id,
    method: 'get'
  })
}

// 新增隧道管理
export function addTunnel(data) {
  return request({
    url: '/fj/conf_tunnel',
    method: 'post',
    data: data
  })
}

// 修改隧道管理
export function updateTunnel(data) {
  return request({
    url: '/fj/conf_tunnel',
    method: 'put',
    data: data
  })
}

// 删除隧道管理
export function delTunnel(id) {
  return request({
    url: '/fj/conf_tunnel/' + id,
    method: 'delete'
  })
}
